package org.jeecgframework.web.system.pojo.base;

import org.jeecgframework.core.common.entity.IdEntity;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by red on 2016/10/25.
 */
@Entity
@Table(name = "v_procument_task")
public class VprocurementTask extends IdEntity{

    private String taskId;
    private String instId;
    private String busId;
    private String defId;
    private String assignee;
    private String nodeName;
    private String handleStatus;
    private Date endTime;
    private String proNoteId;
    private String procurementNo;
    private String processDefinitionName;
    private Date createDate;
    private String state;
    private String createName;
    /**影院关联*/
    private ZyCinemaEntity cinema;

    @Column(name = "create_name")
    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    @Column(name = "create_date")
    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    @Column(name = "state")
    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @Column(name = "procument_no")
    public String getProcurementNo() {
        return procurementNo;
    }

    public void setProcurementNo(String procurementNo) {
        this.procurementNo = procurementNo;
    }

    @Column(name = "pro_note_id")
    public String getProNoteId() {
        return proNoteId;
    }

    public void setProNoteId(String proNoteId) {
        this.proNoteId = proNoteId;
    }

    @Column(name = "task_id")
    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }


    @Column(name = "def_id")
    public String getDefId() {
        return defId;
    }

    public void setDefId(String defId) {
        this.defId = defId;
    }

    @Column(name = "assignee")
    public String getAssignee() {
        return assignee;
    }

    public void setAssignee(String assignee) {
        this.assignee = assignee;
    }

    @Transient
    public String getNodeName() {
        return nodeName;
    }

    public void setNodeName(String nodeName) {
        this.nodeName = nodeName;
    }

    @Column(name = "inst_id")
    public String getInstId() {
        return instId;
    }

    public void setInstId(String instId) {
        this.instId = instId;
    }

    @Column(name = "handle_status")
    public String getHandleStatus() {
        return handleStatus;
    }

    public void setHandleStatus(String handleStatus) {
        this.handleStatus = handleStatus;
    }

    @Column(name = "end_time")
    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    /**
     * 影院关联
     */
    @ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="CINEMA_ID")
    public ZyCinemaEntity getCinema() {
        return cinema;
    }

    /**
     * 影院关联
     */
    public void setCinema(ZyCinemaEntity cinema) {
        this.cinema = cinema;
    }

    @Column(name = "process_definition_name")
    public String getProcessDefinitionName() {
        return processDefinitionName;
    }

    public void setProcessDefinitionName(String processDefinitionName) {
        this.processDefinitionName = processDefinitionName;
    }

    @Column(name = "bus_id")
    public String getBusId() {
        return busId;
    }

    public void setBusId(String busId) {
        this.busId = busId;
    }
}
